<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<trans:initPage module="approvals" />

<logic:notPresent name="approvals">
<div class=text><trans:showPageMessage label="approvals.youhavenoapprovals" /></div>
</logic:notPresent>
<tr bgcolor="#FFFFFF" align=center>
<td colspan=5 class="text_search">
<form method=POST action=<html:rewrite page="/approve.do"/> >
<input type=hidden name="show" value="0"/>
<input class=buton type=submit value="<trans:showPageMessage label="approvals.showall" hide_link="true" />"/>
<input class=buton type=button onclick="this.form.show.value=1;this.form.submit();" value="<trans:showPageMessage label="approvals.showaproved" hide_link="true" />"/>
<input class=buton type=button onclick="this.form.show.value=2;this.form.submit();" value="<trans:showPageMessage label="approvals.showunapproved" hide_link="true" />"/>
<input class=buton type=button onclick="this.form.show.value=3;this.form.submit();" value="<trans:showPageMessage label="approvals.showrejected" hide_link="true" />"/>
</form>
</td>
</tr>

<logic:present name="approvals">

<tr bgcolor="#FFFFFF" align=center>

<td class="text_searchbold">
<html:link page="/approve.do?sort=name">
<trans:showPageMessage label="approvals.itemname" />
</html:link>
	</td>
<td class="text_searchbold">
<html:link page="/approve.do?sort=type">
<trans:showPageMessage label="approvals.itemtype" />
</html:link>
 </td>
 <td class="text_searchbold">
<html:link page="/approve.do?sort=user">
<trans:showPageMessage label="approvals.generatedbytheuser" />
</html:link>
	</td>
 <td class="text_searchbold" width=15%>
<html:link page="/approve.do?sort=issuedate">
<trans:showPageMessage label="approvals.issuedate" />
</html:link>
</td>
<td class="text_searchbold">
<html:link page="/approve.do?sort=readdate">
<trans:showPageMessage label="approvals.rejectapprovaldate" />
</html:link>
</td>
	
</tr>
 
<logic:iterate scope="request" name="approvals" id="approve">
<logic:equal name="approve" property="show" value="true">
<tr bgcolor="#FFFFFF" align=center>
<td class="text_search">
<logic:notPresent name="approve" property="read">
<b>
<html:link page="/activity/view.jsp" name="approve" property="params">
<bean:write name="approve" property="titleString"/>
</html:link>
</b>
</logic:notPresent>
<logic:present name="approve" property="read">
<html:link page="/activity/view.jsp" name="approve" property="params">
<bean:write name="approve" property="titleString"/>
</html:link>
</logic:present>
</td>
<td class="text_search"><bean:write name="approve" property="name"/></td>
<td class="text_search"><bean:write name="approve" property="sourceUserName"/></td>
<td class="text_search"><bean:write name="approve" property="sent"/></td>
<td class="text_search">
<logic:present name="approve" property="read">
<bean:write name="approve" property="read"/>
</logic:present>
<logic:notPresent name="approve" property="read">
--
</logic:notPresent>
</td>
</tr>
</logic:equal>
</logic:iterate>
</tr>

<logic:present name="pagetk">
<tr>
<td align=center colspan=5 bgcolor="#FFFFFF">
Pages 
<logic:iterate scope="request" name="pagetk" id="token">
<html:link page="/approve.do" name="token" property="params">
<bean:write name="token" property="no"/>
</html:link>
&nbsp;|&nbsp;
</logic:iterate>
</td>
</tr><trans:showPageMessage label="translator.showhiddentags"/>
</logic:present>

</logic:present>
